/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FilmYonet.java
 *
 * Created on May 12, 2012, 12:26:21 PM
 */
package sinemaproject;

import java.text.ParseException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.swing.table.DefaultTableModel;
import entity.Film;
import entity.Filmtipleri;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.persistence.Persistence;

/**
 *
 * @author USER
 */
public class FilmYonet extends javax.swing.JFrame {

    /** Creates new form FilmYonet */
    public FilmYonet() {
        initComponents();
        refreshFilmUITable();
        showAllFilmTipleri();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jComboBox1 = new javax.swing.JComboBox();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jSpinner1 = new javax.swing.JSpinner();
        jTextField3 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jCheckBox1 = new javax.swing.JCheckBox();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel1.setName("jPanel1"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sinemaproject.SinemaProjectApp.class).getContext().getResourceMap(FilmYonet.class);
        jComboBox1.setFont(resourceMap.getFont("jComboBox1.font")); // NOI18N
        jComboBox1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jComboBox1.setName("jComboBox1"); // NOI18N

        jTextField1.setFont(resourceMap.getFont("jTextField1.font")); // NOI18N
        jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
        jTextField1.setName("jTextField1"); // NOI18N

        jTextField2.setFont(resourceMap.getFont("jTextField2.font")); // NOI18N
        jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
        jTextField2.setName("jTextField2"); // NOI18N

        jSpinner1.setFont(resourceMap.getFont("jSpinner1.font")); // NOI18N
        jSpinner1.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(), null, null, java.util.Calendar.WEEK_OF_MONTH));
        jSpinner1.setName("jSpinner1"); // NOI18N

        jTextField3.setFont(resourceMap.getFont("jTextField3.font")); // NOI18N
        jTextField3.setText(resourceMap.getString("jTextField3.text")); // NOI18N
        jTextField3.setName("jTextField3"); // NOI18N

        jLabel1.setFont(resourceMap.getFont("jLabel1.font")); // NOI18N
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        jSeparator1.setName("jSeparator1"); // NOI18N

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jLabel2.setName("jLabel2"); // NOI18N

        jButton1.setBackground(resourceMap.getColor("jButton1.background")); // NOI18N
        jButton1.setFont(resourceMap.getFont("jButton1.font")); // NOI18N
        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        jButton2.setBackground(resourceMap.getColor("jButton2.background")); // NOI18N
        jButton2.setFont(resourceMap.getFont("jButton2.font")); // NOI18N
        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });
        jButton2.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jButton2KeyPressed(evt);
            }
        });

        jButton3.setBackground(resourceMap.getColor("jButton3.background")); // NOI18N
        jButton3.setFont(resourceMap.getFont("jButton3.font")); // NOI18N
        jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
        jButton3.setName("jButton3"); // NOI18N
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton3MouseClicked(evt);
            }
        });

        jCheckBox1.setFont(resourceMap.getFont("jCheckBox1.font")); // NOI18N
        jCheckBox1.setText(resourceMap.getString("jCheckBox1.text")); // NOI18N
        jCheckBox1.setName("jCheckBox1"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jComboBox1, 0, 228, Short.MAX_VALUE)
                    .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                    .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE)
                    .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(20, 20, 20))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        jPanel2.setName("jPanel2"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Film Adı", "Yapımcı", "Film Tipi", "Yayın Tarihi", "Süre", "Aktif"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Boolean.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.setName("jTable1"); // NOI18N
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 692, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 224, Short.MAX_VALUE)
                .addGap(12, 12, 12))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>                        
    
    private EntityManagerFactory emf;
    private DefaultTableModel tmodel;
        
    private EntityManager getEntityManager() {
        if (emf == null) {
            emf = Persistence.createEntityManagerFactory("SinemaProjectPU");
        }
        return emf.createEntityManager();
    }
    
    //Ekle Butonu
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {                                      
        // TODO add your handling code here:
        Film yeniFilm = new Film();
        
        Filmtipleri fimTip = getFilmTipByName(jComboBox1.getSelectedItem().toString());
        
        yeniFilm.setTipId(fimTip);//jComboBox1.getSelectedItem()); 
        yeniFilm.setAdFilm(jTextField1.getText());  
        yeniFilm.setYapimci(jTextField2.getText());  
        
        
//        SimpleDateFormat ft = new SimpleDateFormat ("yyyy-MM-dd");
//        Date yayinTarih;
//        try {
//            yayinTarih = ft.parse((String)jSpinner1.getValue());
//            yeniFilm.setYayinTarih(yayinTarih);
//        } catch (ParseException ex) {
//            Logger.getLogger(FilmYonet.class.getName()).log(Level.SEVERE, null, ex);
//        }
//                 
//        Date sure;
//        ft = new SimpleDateFormat ("hh:mm:ss");
//        try {
//            sure = ft.parse((String)jSpinner1.getValue());
//            yeniFilm.setSure(sure);
//        } catch (ParseException ex) {
//            Logger.getLogger(FilmYonet.class.getName()).log(Level.SEVERE, null, ex);
//        }
//                        
        yeniFilm.setActive(jCheckBox1.isSelected());
        
        addFilm(yeniFilm);
        refreshFilmUITable();
    }                                     

    //Film Güncelle     
    private void jButton2KeyPressed(java.awt.event.KeyEvent evt) {                                    
  
    }                                   

    //Film Sil        
    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {                                      
        // TODO add your handling code here:
        int row = jTable1.getSelectedRow();
        Film film = new Film();
        film.setIdFilm( getFilmByName(jTable1.getValueAt(row, 0).toString()).getIdFilm() );
        
        removeFilm(film);
        refreshFilmUITable();
        
        jButton2.setEnabled(false);
        jButton3.setEnabled(false);    
    }                                     

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {                                     
        // TODO add your handling code here:
        int row = jTable1.getSelectedRow();        
        //Kutuyu güncelle
        jTextField1.setText((String)jTable1.getValueAt(row, 0));
        jTextField2.setText((String)jTable1.getValueAt(row, 1));
        ////jSpinner1.setValue(jTable1.getValueAt(row, 3));
        ////jTextField3.setText(jTable1.getValueAt(row, 4).toString());
        jCheckBox1.setSelected((Boolean)jTable1.getValueAt(row, 5));
        jComboBox1.setSelectedItem( getFilmTipByName(jTable1.getValueAt(row, 2).toString()).getTipIsmi() );
        
        //
        jButton2.setEnabled(true);
        jButton3.setEnabled(true);
    }                                    

    //Film Güncelle
    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {                                      
        // TODO add your handling code here:
        int row = jTable1.getSelectedRow();
        Film film = new Film();
        String filmname = jTable1.getValueAt(row, 0).toString();
        film.setIdFilm( getFilmByName(filmname).getIdFilm() );
        
        film.setAdFilm(jTextField1.getText());  
        film.setYapimci(jTextField2.getText());  
        film.setActive(jCheckBox1.isSelected());
        film.setTipId(getFilmTipByName(jComboBox1.getSelectedItem().toString()));
        
        updateFilm(film);
        refreshFilmUITable();
        
        jButton2.setEnabled(false);
        jButton3.setEnabled(false); 
    }                                     
             
    public boolean addFilm(Film film) {
      EntityManager em = getEntityManager();
       try{
         em.getTransaction().begin();
         em.persist(film); 
         em.getTransaction().commit();
       } finally {
        em.close();
        return false;
       }
    }    
    
    public boolean removeFilm(Film film) {
      EntityManager em = getEntityManager();
      try{
        em.getTransaction().begin();
        Film tipx = em.find(Film.class, film.getIdFilm());
        em.remove(tipx);
        em.getTransaction().commit();
      } finally {
        em.close();
        return false;
      }
    }
    
    public boolean updateFilm(Film film) {
      EntityManager em = getEntityManager();
      try{
        em.getTransaction().begin();
        Film tipx = em.find(Film.class, film.getIdFilm());
        
        tipx.setActive(film.getActive());
        tipx.setAdFilm(film.getAdFilm());
        tipx.setSure(film.getSure());
        //ELLEME//tipx.setTipId(film.getTipId());
        tipx.setYapimci(film.getYapimci());
        tipx.setYayinTarih(film.getYayinTarih());

        em.getTransaction().commit();
      } finally {
        em.close();
        return false;
      }
    }
    
    public List<Film> getAllFilms(){        
        List<Film> films;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            films = em.createNamedQuery("Film.findAll").getResultList();
        } finally {
            em.close();
        }                
        return films;        
    }
    
    public void refreshFilmUITable(){
        
        List<Film> films;
        films = getAllFilms();
        
        tmodel = (DefaultTableModel) jTable1.getModel();
        //clean tmodel...
        tmodel.setRowCount(0);
        
        
        for(Film film : films){
            
            tmodel.addRow(new Object[]{film.getAdFilm(), film.getYapimci(), film.getTipId().getTipIsmi(), film.getYayinTarih(),
                        film.getSure(), film.getActive()});
        }

        jTable1.setModel(tmodel);
    }    
   
    public void showAllFilmTipleri(){        
        List<Filmtipleri> tips;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            tips = em.createNamedQuery("Filmtipleri.findAll").getResultList();
        } finally {
            em.close();
        }                
        
        for( Filmtipleri tip : tips ){
            jComboBox1.addItem(tip.getTipIsmi());
        }
    }
    
    private Filmtipleri getFilmTipById(String selectedItem) {
        
        Filmtipleri tip;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            tip = (Filmtipleri) em.createNamedQuery("Filmtipleri.findByIdFilmTipleri").setParameter("idFilmTipleri", Integer.parseInt(selectedItem)).getSingleResult();
        } finally {
            em.close();
        }                
        return tip;          
    }   
    
     
    private Filmtipleri getFilmTipByName(String name) {
        
        Filmtipleri tip;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            tip = (Filmtipleri) em.createNamedQuery("Filmtipleri.findByTipIsmi").setParameter("tipIsmi", name).getSingleResult();
        } finally {
            em.close();
        }                
        return tip;          
    }    
    
    private Film getFilmById(String selectedItem) {
        
        Film film;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            film = (Film) em.createNamedQuery("Film.findByIdFilm").setParameter("idFilm", Integer.parseInt(selectedItem)).getSingleResult();
        } finally {
            em.close();
        }                
        return film;          
    }       
    
    
    private Film getFilmByName(String selectedItem) {
        
        Film film;        
        EntityManager em = getEntityManager();
        try{
            em.getTransaction().begin();
            film = (Film) em.createNamedQuery("Film.findByAdFilm").setParameter("adFilm", selectedItem).getSingleResult();
        } finally {
            em.close();
        }                
        return film;          
    }       
    
    // Variables declaration - do not modify                     
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSpinner jSpinner1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    // End of variables declaration                   


}
